Path: blob/master/Part 9 - Dimension Reduction/Kernel PCA/[R] Kernel PCA.ipynb
1339 views
Kernel: R
Kernel PCA
Data preprocessing
In [1]:
In [2]:
Out[2]:
In [3]:
In [4]:
Out[4]:
In [5]:
Out[5]:
In [6]:
In [7]:
Out[7]:
In [8]:
Out[8]:
Applying Kernel PCA
In [9]:
In [10]:
In [11]:
In [12]:
In [13]:
Out[13]:
In [14]:
Out[14]:
Fitting Logistic Regreession to the Training set
In [15]:
Predicting the Test set results
In [16]:
In [17]:
Out[17]:
In [18]:
In [19]:
Out[19]:
Making the Confusion Matrix
In [20]:
In [21]:
Out[21]:
y_pred
0 1
0 47 4
1 10 19
classifier made 47 + 19 = 66 correct prediction and 10 + 4 = 14 incoreect predictions.
Visualizing the Training set results
In [22]:
In [23]:
In [24]:
Out[24]:
Visualizing the Test set results
In [25]:
In [26]:
Out[26]: